home *** CD-ROM | disk | FTP | other *** search
/ Aminet 22 / Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso / Aminet / util / time / EngClock86.lha / EngClock86 / Install_EngClock < prev    next >
Text File  |  1997-09-09  |  4KB  |  194 lines

  1. ; EngClock v8.0 installation script
  2. ; $VER: Install_EngClock v1.0
  3.  
  4. ; Script by Ben Matthew 23/09/96
  5.  
  6. (set Triton-Version ( / (getversion "libs:triton.library") 65536))
  7. (set Trans-Version (/ (getversion "libs:translator.library") 65536))
  8. (set Data-Version (/ (getversion "libs:datatypes/sound.datatype") 65536))
  9. (set CPU-Version (database "cpu"))
  10. (set UseTriton 0)
  11.  
  12. (if (< CPU-Version 68020)
  13.     (abort "You need at least a 68020 processor to use EngClock!")
  14. )
  15.     
  16. (set DestDir (askdir
  17.     (prompt ("Where would you like to install English Clock ?"))
  18.     (default "sys:wbstartup")
  19.     (help "Choose a directory to place in main executable")
  20. ))
  21.  
  22. (copyfiles
  23.     (source "")
  24.     (dest DestDir)
  25.     (files)
  26.     (infos)
  27.     (pattern "EngClock")
  28.     (prompt "Copying main executables...")
  29.     (help "Nothing to worry about")
  30.     (confirm)
  31. )
  32.  
  33. (set ModDir (tackon DestDir "modules"))
  34.  
  35. (makedir ModDir)
  36.  
  37. (copyfiles
  38.     (source "modules")
  39.     (dest ModDir)
  40.     (files)
  41.     (infos)
  42.     (pattern "#?.langmod")
  43.     (prompt "Copying language modules...")
  44.     (help "Nothing to worry about")
  45.     (confirm)
  46. )
  47.  
  48. (set DocDir (askdir
  49.     (prompt "Where shall I install the documentation ?")
  50.     (default "help:")
  51.     (help "Choose a directory for the AmigaGuide help")
  52. ))
  53.  
  54. (copyfiles
  55.     (source "")
  56.     (dest DocDir)
  57.     (files)
  58.     (infos)
  59.     (pattern "EngClock.guide")
  60.     (prompt "Copying AmigaGuide help...")
  61.     (help "Nothing to worry about")
  62.     (confirm)
  63. )
  64.  
  65. (if (< Trans-Version 42)
  66.     ((copyfiles
  67.         (source "libs")
  68.         (dest "libs:")
  69.         (files)
  70.         (pattern "translator.library")
  71.         (confirm)
  72.         (help "None")
  73.         (prompt "Copying new fangled (v42) translator.library")
  74.     )
  75.     (copyfiles
  76.         (source "locale/accents")
  77.         (dest "locale:accents")
  78.         (files)
  79.         (pattern "#?")
  80.         (confirm)
  81.         (help "None")
  82.         (prompt "Copying associated accents for translator.library")
  83.     ))
  84.     
  85. )
  86.  
  87. (if (< Data-Version 40)
  88.     (copyfiles
  89.         (source "libs/datatypes")
  90.         (dest "libs:datatypes")
  91.         (files)
  92.         (pattern "sound.datatype")
  93.         (confirm)
  94.         (help "None")
  95.         (prompt "Copying new sound.datatype!")
  96.     )
  97. )
  98.  
  99. (if (not (exists "devs:narrator.device"))
  100.     (copyfiles
  101.         (source "devs")
  102.         (dest "devs:")
  103.         (files)
  104.         (pattern "narrator.device")
  105.         (confirm)
  106.         (help "None")
  107.         (prompt "Copying across the old narrator.device")
  108.     )
  109. )
  110.  
  111.  
  112. (set PrefsDir DestDir)
  113.  
  114. ((copyfiles
  115.     (source "triton")
  116.     (dest PrefsDir)
  117.     (files)
  118.     (pattern "EngPrefs")
  119.     (prompt "Copying Triton prefs executables...")
  120.     (help "Nothing to worry about")
  121.     (confirm)
  122. )
  123.  
  124. (if(< Triton-Version 6)
  125.     (copyfiles
  126.         (source "libs")
  127.         (dest "libs:")
  128.         (files)
  129.         (pattern "triton.library")
  130.         (confirm)
  131.         (help "None")
  132.         (prompt "Copying triton GUI interface library")
  133.     
  134.     )
  135. ))
  136.  
  137. (makedir (tackon PrefsDir "catalogs"))
  138. (makedir (tackon PrefsDir "catalogs/español"))
  139. (makedir (tackon PrefsDir "catalogs/français"))
  140.  
  141. (copyfiles
  142.     (source "catalogs/español")
  143.     (dest (tackon PrefsDir "catalogs/español"))
  144.     (files)
  145. ;    (infos)
  146.     (all)
  147.     (prompt "Copying prefs catalogs...")
  148.     (help "Nothing to worry about")
  149.     (confirm)
  150. )
  151.  
  152. (copyfiles
  153.     (source "catalogs/français")
  154.     (dest (tackon PrefsDir "catalogs/français"))
  155.     (files)
  156. ;    (infos)
  157.     (all)
  158.     (prompt "Copying prefs catalogs...")
  159.     (help "Nothing to worry about")
  160.     (confirm)
  161. )
  162.  
  163. (if (exists("s:engclock.prefs"))
  164.     ((delete "s:engclock.prefs"
  165.         (prompt "Deleting old preferences")
  166.         (confirm)
  167.         (help "None")
  168. )))
  169.  
  170. (message 
  171.     (cat
  172.         "English Clock has now been installed onto your\n"
  173.         "system.  In order to get the most out of the\n"
  174.         "package you will need to configure the huge\n"
  175.         "amounts of preferences to suit exactly what you\n"
  176.         "want.  Don't worry tho' because it will run with\n"
  177.         "or without settings.  It would be sensible to run\n"
  178.         "the program now and select the menu option Set\n"
  179.         "Prefs.  Please remember that in order for this\n"
  180.         "menu option to work the EngPrefs program must \n"
  181.         "exist in a path that AmigaDOS will check, ie.:\n\n"
  182.         "C:, sys:prefs and so on. "
  183.     )
  184. )
  185. (message 
  186.     (cat
  187.         "If you have any problems installing English Clock or would like to "
  188.         "make a suggestion for new releases please contact me by Email at:\n\n"
  189.         "ben@bmatthew.demon.co.uk\n\n"
  190.         "And don't forget the new about EngClock's new WWW home page.  Fint it at:\n\n"
  191.         "http://www.bmatthew.demon.co.uk/amiga/engclock.html\n\n"
  192.         "Hope you enjoy the program!"
  193.     )
  194. )